package com.example.aixiangshou.runninggame;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2018/5/14 15:24
 * @company:
 * @email: lx802315@163.com
 */
public class IconAdapter extends BaseQuickAdapter<IconBean, BaseViewHolder> {

    public IconAdapter(int layoutResId, @Nullable List<IconBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, IconBean item) {
        helper.setImageResource(R.id.imv_icon, item.getIconRec());
        helper.addOnClickListener(R.id.imv_icon);
    }
}
